home *** CD-ROM | disk | FTP | other *** search
- Path: jupiter.planet.net!usenet
- From: Chris Kemp <chrisk@paladn.com>
- Newsgroups: comp.lang.c++
- Subject: (no subject)
- Date: 14 Feb 1996 21:28:48 GMT
- Organization: Paladin Consultants, Inc.
- Message-ID: <4ftk6g$qkn@jupiter.planet.net>
- NNTP-Posting-Host: denv3.planet.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.2N (Windows; I; 32bit)
-
- I am trying to develop a C++ app under DOS, which will control
- motors. The problem is that I have to get input from the user
- in the form of commands (which may come from another computer
- via rs232)
-
- However, I need to be constantly checking condition of motors
- and vacuums, etc during the process, and processing the
- results of those checks.
-
- The cin.getline() routine would work just fine, except that I
- can't afford to just wait for the cin (I have to be constantly
- checking and polling and observing interrupts)
-
- On the other hand, a kbhit/getche combination will be awkward
- because of possible delays echoing the char back to the
- (possibly) remote screen.
-
- Is there an elegant way to accomplish this under a DOS
- environment?
-
- I sure would appreciate any suggestions.
-
- TIA
-
-